package com.spring.housing.feign;


import com.spring.housing.acceptType.PageParams;
import com.spring.housing.returnType.CommenResult;
import com.spring.housing.returnType.PageType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;


@Component
@FeignClient(value = "nacos-config-client",fallback = FallbackService.class)
public interface ComsumerOpenfeign {
    @RequestMapping(value = "/login/index",method = RequestMethod.POST)
    @ResponseBody
    CommenResult getinfo(PageParams params);
    @RequestMapping(value="home/newsInfo",method = RequestMethod.POST)
    @ResponseBody
    CommenResult<PageType<Map<String,Object>>> newsInfo(PageParams params);



    @PostMapping("/test")
    @ResponseBody
    String getinfo();

    @PostMapping("/ofckb/query")
    @ResponseBody
    CommenResult <PageType<Map<String,Object>>>ofckb(PageParams params);

    @PostMapping("/ofckb/acceptOder")
    @ResponseBody
    CommenResult acceptOder(PageParams page);

}
